package org.pointex.common.model;

import java.util.Map;

/**
 * 
 * @author Sz-qiu
 * 
 *         �û���ҳ�Ĳ�����
 */
public class PageEntity {

	/*
	 * 当前页
	 */
	private Integer page;
	/*
	 * 每页大小
	 */
	private Integer size;
	/*
	 * sql参数
	 */
	private Map params;
	/*
	 * 排序列
	 */
	private String orderColumn;
	
	//Mapper对应查找Bean
	private String select;
	//Mapper对应统计Bean
	private String count;
	
	private String orderTurn = "ASC";

	public PageEntity() {
		super();
		// TODO Auto-generated constructor stub
	}

	public PageEntity(Integer page, Integer size, Map params,
			String orderColumn, String orderTurn) {
		super();
		this.page = page;
		this.size = size;
		this.params = params;
		this.orderColumn = orderColumn;
		this.orderTurn = orderTurn;
	}
	
	public PageEntity(Integer page, Integer size, Map params,
			String orderColumn, String orderTurn,String select,String count) {
		super();
		this.page = page;
		this.size = size;
		this.params = params;
		this.orderColumn = orderColumn;
		this.orderTurn = orderTurn;
		this.select=select;
		this.count=count;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public Map getParams() {
		return params;
	}

	public void setParams(Map params) {
		this.params = params;
	}

	public String getOrderColumn() {
		return orderColumn;
	}

	public void setOrderColumn(String orderColumn) {
		this.orderColumn = orderColumn;
	}

	public String getOrderTurn() {
		return orderTurn;
	}

	public void setOrderTurn(String orderTurn) {
		this.orderTurn = orderTurn;
	}

	
	public String getSelect() {
		return select;
	}

	public void setSelect(String select) {
		this.select = select;
	}

	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}

	@Override
	public String toString() {
		return "PageEntity [page=" + page + ", size=" + size + ", params="
				+ params + ", orderColumn=" + orderColumn + ", orderTurn="
				+ orderTurn + "]";
	}

}
